package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

//套餐
public interface SetmealService {
    //分页查询
    Page<Setmeal> findByPage(String name, Integer pageNum, Integer pageSize);
    //添加
    void save(Setmeal setmeal);
    //删除
    void delete(Long[] ids);
    //停售
    void status(Integer status, Long[] ids);
    //  回显
    Setmeal findById(Long id);
    //更新
    void update(Setmeal setmeal);
    //查询所有
    List<Setmeal> findList(Long categoryId, Integer status);
    //根据id查询套餐详情
    List<Dish> getSetmealDish(Long id);
}
